package com.bonc.sign.configuration;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@MapperScan(basePackages = {"com.bonc.sign.mapper"})
@Configuration
@ConditionalOnClass(value = {ApplicationContextAware.class, ApplicationContext.class})
public class AutoSpringConfiguration {

    @Bean
    public SpringUtil springUtil(){
        System.out.println("springUtil init");
        SpringUtil springUtil = new SpringUtil();
        return springUtil;
    }

}
